//
//  SWFormBaseCell.h
//  SWFormDemo
//
//  Created by zijin on 2018/5/28.
//  Copyright © 2018年 selwyn. All rights reserved.
//

#import <UIKit/UIKit.h>

@class SelwynExpandableTextView;
@class SWFormBaseCell;

@protocol FormBaseCellDelegate <NSObject>

// cell 的contentText的文本发生改变时调用
@optional
- (void)contentDidChangeTextWithCell:(SWFormBaseCell *)cell text:(NSString *)text;

- (BOOL)contentShouldChangeTextWithCell:(SWFormBaseCell *)cell text:(NSString *)text;

@end
/**
 SWFormBaseCell 表单条目基类，所有表单条目都继承于BaseCell
 */
@interface SWFormBaseCell : UITableViewCell

@property (strong, nonatomic) UITextField *textField;

/**
 表单标题
 */
@property (strong, nonatomic) UILabel *titleLabel;

/// bottomLine
@property (strong, nonatomic) UIView *bottomLine;

/**
 表单条目所在的tableView
 */
@property (weak, nonatomic) UITableView *expandableTableView;

/// delegete
@property (weak, nonatomic) id<FormBaseCellDelegate> delegete;

@end
